<?php

$sql = " select name [database] from master.dbo.sysdatabases ";

return $sql;

?>